<div class="previews form">
<?php echo $this->Form->create('Preview',array('type' => 'file')); ?>
	<fieldset>
		<legend><?php echo __('Agregar Avance'); ?></legend>
	<?php
		echo $this->Form->input('name', array('label' => 'Nombre'));
		echo $this->Form->input('description', array('label' => 'Descripción'));
		echo $this->Form->input('route', array('label' => 'Link video'));
		echo $this->Form->input('stage_id', array('label' => 'Etapa'));
		//echo $this->Form->input('upload_id');
		echo $this->Form->create('Upload', array('type' => 'file'));
		echo $this->Form->input('file', array('type' => 'file', 'label'=> 'Archivo'));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit')); ?>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('List Previews'), array('action' => 'index')); ?></li>
		<li><?php echo $this->Html->link(__('List Stages'), array('controller' => 'stages', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Stage'), array('controller' => 'stages', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Uploads'), array('controller' => 'uploads', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Upload'), array('controller' => 'uploads', 'action' => 'add')); ?> </li>
	</ul>
</div>
